package com.feeyo.monitor.service.imp;

import com.feeyo.monitor.domain.FenceId;
import com.feeyo.monitor.mapper.FenceIdMapper;
import com.feeyo.monitor.service.FenceIdService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author <a href="mailto:bliulei@variflight.com">liulei</a>
 * @Description Created by liulei on 2018/1/16 上午11:09.
 */
@Service
public class FenceIdServiceImpl  implements FenceIdService{
    @Autowired
    FenceIdMapper fenceIdMapper;

    @Override
    public int deleteByPrimaryKey(String id) {
        return 0;
    }

    @Override
    public int insert(FenceId record) {
        return 0;
    }

    @Override
    public int insertSelective(FenceId record) {
        return 0;
    }

    @Override
    public FenceId selectByPrimaryKey(String id) {
        return null;
    }

    @Override
    public int updateByPrimaryKeySelective(FenceId record) {
        return 0;
    }

    @Override
    public int updateByPrimaryKey(FenceId record) {
        return 0;
    }

    @Override
    public int updateTrueStatus(Integer fid) {
        return fenceIdMapper.updateTrueStatus(fid);
    }

    @Override
    public int updateFalseStatus(Integer fid) {
        return fenceIdMapper.updateFalseStatus(fid);
    }

    @Override
    public FenceId selectUsableId() {
        return fenceIdMapper.selectUsableId();
    }
}
